package com.yjy.demo06;

public class Student1 {
    private String name;
    private  int age;
    private String school;
    private  String major;

    private int garde;
    public Student1(String 超人强, int ageParam, String 云南能源, String 软件技术, String number){

    }
    public  Student1(String nameParam,int ageParam){
        name=nameParam;
        age=ageParam;
    }
    public Student1(String nameParam,int ageParam,String schoolParam){
        name = nameParam;
        age = ageParam;
        school = schoolParam;

    }
    public Student1(String nameParam,int ageParam,String schoolParam,String majorParam,int gardeParam){
        name = nameParam;
        age = ageParam;
        school = schoolParam;
        major=majorParam;

    }
    public String getInfo(){
        return "姓名:" + name + "\t年龄" + age
                +"\t学校:" + school + "\t专业:" + major;
    }

}
